public class Hall {
    private String hallName;
    private int rowCount;
    private int colCount;

    public Hall(String hallName, int rowCount, int colCount) {
        this.hallName = hallName;
        this.rowCount = rowCount;
        this.colCount = colCount;
    }

    // 检查座位是否有效
    public boolean isSeatValid(int row, int col) {
        return row >= 1 && row <= rowCount && col >= 1 && col <= colCount;
    }

    // Getters
    public String getHallName() { return hallName; }
    public int getRowCount() { return rowCount; }
    public int getColCount() { return colCount; }
}
    